home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 5
/
Apprentice-Release5.iso
/
Source Code
/
By the Book
/
Mac Pascal Primer, 4.0
/
Chap 3, Hello2 ƒ
/
Hello2.p
next >
Wrap
Text File
|
1990-07-06
|
517b
|
28 lines
program Hello2;
const
BASE_RES_ID = 400;
HORIZONTAL_PIXEL = 30;
VERTICAL_PIXEL = 50;
{--------------------------------> WindowInit <---}
procedure WindowInit;
var
helloWindow: WindowPtr;
begin
helloWindow := GetNewWindow(BASE_RES_ID, nil, WindowPtr(-1));
ShowWindow(helloWindow);
SetPort(helloWindow);
MoveTo(HORIZONTAL_PIXEL, VERTICAL_PIXEL);
DrawString('Hello, world!');
end;
{--------------------------------> Hello2 <---}
begin
WindowInit;
while (not Button) do
begin
end;
end.